<?php
/**
 * Created by PhpStorm.
 * User: saive
 * Date: 16-5-2
 * Time: 下午8:16
 *
 * 检测文件
 *
 */

$command = "/etc/init.d/nginx configtest /etc/nginx/conf.d/m.stage.com.conf";

$res = exec($command,$a);

print_r($a);


